package com.kang.dao;

import java.util.List;

import com.kang.pojo.WarehouseOrder;
import com.kang.pojo.WarehousePoJo;
import com.vonechina.entity.page.WareHouseOrderPage;

/**
 * 采购入库Mapper
 * 
 * @author ysq
 *
 */
public interface WarehouseOrderMapper {
	/**
	 * 根据purchaseordereid删除WarehouseOrder
	 * 
	 * @param purchaseordereid
	 * @return
	 */
	public int delWarehouseOrder(Integer purchaseordereid);

	/**
	 * 保存采购入库信息
	 * 
	 * @param record
	 * @return
	 */
	int insertSelective(WarehouseOrder record);

	/**
	 * 根据purchaseOrdereID查询采购入库信息
	 * 
	 * @param purchaseordereid
	 * @return
	 */
	WarehouseOrder selectByPrimaryKey(Integer purchaseordereid);

	/**
	 * 修改采购入库信息
	 * 
	 * @param record
	 * @return
	 */
	int updateByPrimaryKeySelective(WarehouseOrder record);

	/**
	 * 根据warehouseNumber查询采购入库信息
	 * 
	 * @param warehousenumber
	 * @return
	 */
	WarehouseOrder selectoneid(String warehousenumber);

	/**
	 * 查询采购入库
	 * 
	 * @param wareHouseOrderPage
	 * @return
	 */
	List<WarehousePoJo> selectByWheres(WareHouseOrderPage wareHouseOrderPage);
	List<WarehousePoJo> selectoneid2(String warehousenumber);
	/**
	 * 查询采购入库总条数
	 * 
	 * @param wareHouseOrderPage
	 * @return
	 */
	int selectByWherescount(WareHouseOrderPage wareHouseOrderPage);

	/**
	 * 查询最大的采购入库单号用，于于生成采购入库订单号
	 * 
	 * @return
	 */
	String selectMaxWarehouseNumber();
}